//
//  ZZXcacheDeleteTableViewCell.m
//  Travel
//
//  Created by dllo on 15/12/1.
//  Copyright © 2015年 doll. All rights reserved.
//

#import "ZZXcacheDeleteTableViewCell.h"

@interface ZZXcacheDeleteTableViewCell ()


@end



@implementation ZZXcacheDeleteTableViewCell

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    
    
    
    if (self) {
        
        self.label = [[UILabel alloc] init];
        [self.contentView addSubview:self.label];
        self.label.textAlignment = NSTextAlignmentRight;
       
    }
    
    return self;
    
}

- (void)layoutSubviews
{
    [super layoutSubviews];
    
    if ([[NSUserDefaults standardUserDefaults]boolForKey:@"isNight"]) {
        self.contentView.backgroundColor = [UIColor colorWithRed:0.64 green:0.6 blue:0.58 alpha:1];
    }
    else
    {
        self.contentView.backgroundColor = [UIColor whiteColor];
    }
    
    self.label.frame = CGRectMake(WIDTH - 100, 0, 90, 44);
    
}




- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
